<head>
    <title>SHOP 管理中心 - 品牌管理 </title>
    <base href="__STATIC__/hou/">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <link href="styles/general.css" rel="stylesheet" type="text/css" />
    <link href="styles/main.css" rel="stylesheet" type="text/css" />
    <script src="__STATIC__/qian/js/jquery-1.11.1.min.js"></script>
    <script src="__STATIC__/hou/js/imageshow.js"></script>
</head>
<body>

<h1>
    <span class="action-span"><a href="{:url('Brand/first')}">商品品牌</a></span>
    <span class="action-span1"><a href="index.php?act=main">SHOP 管理中心</a> </span><span id="search_id" class="action-span1"> - 添加品牌 </span>
    <div style="clear:both"></div>
</h1>

<div class="main-div">
    <form method="post" action="__URL__/gai" name="theForm" enctype="multipart/form-data">
        <table cellspacing="1" cellpadding="3" width="100%">
            <tbody><tr>
                <td class="label">品牌名称</td>
                <td><input type="text" name="brand_name" maxlength="60" value="{$data.brand_name}"><span class="require-field">*</span></td>
            </tr>
            <tr>
                <td class="label">品牌网址</td>
                <td><input type="text" name="site_url" maxlength="60" size="40" value="{$data.site_url}"></td>
            </tr>
            <tr>
                <td class="label"><a href="javascript:showNotice('warn_brandlogo');" title="点击此处查看提示信息">
                    <img src="images/notice.gif" width="16" height="16" border="0" alt="点击此处查看提示信息"></a>品牌LOGO</td>

                <td><input type="file" name="brand_logo" id="logo" size="45">    <br>
                    <span class="notice-span" style="display:block" id="warn_brandlogo">请上传图片，做为品牌的LOGO！        </span>
                    <div><img id="ImgPr" width="20%" height="120px" style="margin-left:190px; margin-bottom:10px;border:#EFF0F4 solid 2px; border-radius:10px;"  src="__ROOT__/uploads/20181102/{$data.brand_logo}"></div>
                </td>
            </tr>
            <tr>
                <td class="label">品牌描述</td>
                <td><textarea name="brand_desc" cols="60" rows="4" >{$data.brand_desc}</textarea></td>
            </tr>
            <tr>
                <td class="label">排序</td>
                <td><input type="text" name="sort" maxlength="40" size="15" value="{$data.sort}"></td>
            </tr>
            <tr>
                <td class="label">是否显示</td>
                <td>
                    {eq name="data.is_show" value="1"}
                <input type="radio" name="is_show" value="1" checked="checked"> 是
                    <input type="radio" name="is_show" value="0"> 否        (当品牌下还没有商品的时候，首页及分类页的品牌区将不会显示该品牌。)

                    {else/}
                    <input type="radio" name="is_show" value="1" > 是
                    <input type="radio" name="is_show" value="0" checked="checked"> 否        (当品牌下还没有商品的时候，首页及分类页的品牌区将不会显示该品牌。)

                    {/eq}
                </td>

            </tr>
            <tr>
                <td colspan="2" align="center"><br>
                    <input type="hidden" name="brand_id" value="{$data.brand_id}" width="10">
                    <input type="submit" class="button" value=" 确定 ">
                    <input type="reset" class="button" value=" 重置 ">
                </td>
            </tr>
            </tbody>
        </table>
    </form>
</div>

</body>
</html>
<script>
    $(function(){
        $('#logo').uploadPreview({Img:"ImgPr",Width:120,Height:120});
    })
</script>